#!/usr/bin/node
const log = console.log,

      usr = process.argv[2],
      pwd = process.argv[3];

if(process.argv.length!==4){
  log('请输入正确的参数个数');
  process.exit(2);
};
if(usr=='' || pwd== ''){
  log('请输入正确的参数');
  process.exit(3);
}
log(`usr:${usr}`);
log(`pwd:${pwd}`);

let buf = new Buffer(`${usr}:${pwd}`);
log(`base64:${buf.toString('base64')}`);

